<!DOCTYPE html>
<html lang="cn">
<head>
	<meta id="meta" about="" charset="UTF-8">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name=”viewport” content=”width=device-width, initial-scale=1″ />
	<meta name="keywords" content="aa, aa, aa, aa, aa, aa, aa, aa, aa">
	<meta name="description" content="aa bb cc" />
	<meta name="msapplication-TileImage" content="">
	<link rel="shortcut icon" type="image/ico" href="<?php echo URL_ASSET_ROOT;?>img/favicon.png" />
	<link rel="stylesheet" href="<?php echo URL_ASSET_ROOT;?>css/lib/bootstrap/bootstrap-3.3.7.min.css">
	<link rel="stylesheet" href="<?php echo URL_ASSET_ROOT;?>css/private/public/public_developer_header.css">
</head>
<body>
<div class="header">
	<div class="header-nav-bar">
		<a href="<?php echo URL_DEVELOPER_INDEX;?>">
			<div class="header-nav-bar-logo"><img src="<?php echo URL_ASSET_ROOT;?>img/logo.png"></div>
			<div class="header-nav-bar-title"><?php echo TITLE_DEVELOPER;?></div>
		</a>
		<?php

		if(!$this->session()) {
			echo '<div class="header-nav-bar-register">
						<a href="'.URL_USER_REGISTER.'">
							注册
						</a>
					</div>
					<div class="header-nav-bar-login">
						<a href="'.URL_USER_LOGIN.'">
							登录
						</a>
					</div>
                ';

		} else {
			echo '
					<div class="header-nav-bar-logout">
						<a href="'.URL_USER_LOGOUT.'">
							[退出]
						</a>
					</div>
					<div class="header-nav-bar-account">
						'.Yii::app()->session['userEmail'].'
					</div>
                ';
		}
		?>

		<div class="header-nav-bar-split">|</div>
		<div class="header-nav-bar-menu">Painter博客</div>
		<div class="header-nav-bar-menu">论坛社区</div>
		<div class="header-nav-bar-menu">文档中心</div>
		<div class="header-nav-bar-menu"><a href="<?php echo URL_DOMAIN;?>">官网主页</a></div>
	</div>
</div>
<?php echo $content; ?>

<!--友盟统计-->
<style type="text/css">#cnzz_stat_icon_1261120765 {display: none;}</style>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261120765'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1261120765' type='text/javascript'%3E%3C/script%3E"));</script>

</body>
</html>
